/**
 * 
 */
package ui.model;

import javax.swing.JPanel;
import javax.swing.event.*;

import ui.*;

/**
 * @author Anthares
 *
 */
public class SyllabusPrixTableModelListener implements TableModelListener {
	private JPanel source;
	public SyllabusPrixTableModelListener(JPanel source){
		this.source=source;
	}
	@Override
	public void tableChanged(TableModelEvent arg0) {
		if(source instanceof NewComEtuThirdPanel){
			((NewComEtuThirdPanel)source).recalcPrix();
		}else if(source instanceof EditComEtuThirdPanel){
			((EditComEtuThirdPanel)source).recalcPrix();
		}
	}

}
